# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=toilet
pkgver=0.3
pkgrel=1
pkgdesc='Free replacement for the FIGlet utility.'
arch=('x86_64' 'aarch64')
url='http://libcaca.zoy.org/wiki/toilet'
license=('custom:WTFPL')
depends=('libcaca')
source=("http://libcaca.zoy.org/files/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('64b9389562a51e7dba6e3f1dd27c5340f90df25d8fbf1e041b539f5243b5b6b7af1ebf033a511053ad72a73908d496a1f3d14c4ac656425aefb8364a0664ceed')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

